package org.library.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author Chen
 * @since 2023/6/13 16:38
 */

@TableName("book")
@Data
public class SysBook {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String name;

    private String author;

    private LocalDate publishDate;

    @Override
    public String toString() {
        return "编号='" + id + '\'' +
                ", 书名='" + name + '\'' +
                ", 作者='" + author + '\'' +
                ", 出版时间=" + publishDate;
    }
}
